package com.etc.exam;

/**
 * @author: knowno
 * @create: 2024-09-09 14:32
 * @Version 1.0
 **/
class A {
    public void test() {
        System.out.print("A");
    }
}

class B extends A {
    @Override
    public void test() {
        System.out.print("B");
    }
}

class C {
    public static void main(String[] args) {
        A t = new B();
        t.test();
    }
}